<?php

require_once("inc.member.php");

$total = @mysql_num_rows($r=mysql_query("select * from gg_share_trading where type='buy' and qty>match_qty order by price desc, cdate"));
$k=0;
$table="<table class='pbl_table'><tr class='pbl_header'><td>Date</td><td>Player ID</td><td>MP Per Unit</td><td>Quantity</td></tr>";
for($i=0;$i<$total;$i++){
	$p=mysql_fetch_assoc($r);
	
	$table.="<tr class='row$k'><td>".$p["cdate"]."</td><td>".$p["uid"]."</td><td>".$p["price"]."</td><td>".($p["qty"]-$p["match_qty"])."</td></tr>";
	
	$k=1-$k;
}

if($i==0) $table.="<tr><td colspan=4 align='center'>No Record Found</td></tr>";
$table.="</table>";

echo $table;

?>

<link rel="stylesheet" href="/templates/green/common.css" type="text/css" />